]> dgit.raspbian.org Git - gnome-shell.git/commit
blur-effect: Floor downscaled frambuffer sizes
authorJonas Dreßler <verdre@v0yd.nl>
Mon, 10 Feb 2020 14:22:33 +0000 (15:22 +0100)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Wed, 12 Feb 2020 14:02:28 +0000 (14:02 +0000)
commitea2ddaa9ddaa643fce99d5eb6a948b0b0d3553fa
treef5683fe1f3abb6d68a4b003a4d0c766f4dbb33c9
parentb4d491a4d21f97b7a11a1eaca853d71921916c8f
blur-effect: Floor downscaled frambuffer sizes

Floor the downscaled size of the new framebuffer to make sure we don't
initialize a framebuffer with a floating point value that might be
interpreted wrong by `cogl_texture_2d_new_with_size` and end up with a
slightly wrong aspect ratio of the framebuffer.

This fixes situations where the widths or heights of downscaled
framebuffers sometimes miss some pixels at the border.

While at it, remove the `downscale_factor` argument from
`setup_projection_matrix` since that function doesn't need the initial
size of the actor anyway.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/991
src/shell-blur-effect.c